3.4 \(\int -2 \, dx\)

Optimal. Leaf size=3 \[ -2 x \]

[Out]

-2*x

________________________________________________________________________________________

Rubi [A]  time = 0.0002742, antiderivative size = 3, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 1, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 1., Rules used = {8} \[ -2 x \]

Antiderivative was successfully verified.

[In]

Int[-2,x]

[Out]

-2*x

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rubi steps

\begin{align*} \int -2 \, dx &=-2 x\\ \end{align*}

Mathematica [A]  time = 0.0000265, size = 3, normalized size = 1. \[ -2 x \]

Antiderivative was successfully verified.

[In]

Integrate[-2,x]

[Out]

-2*x

________________________________________________________________________________________

Maple [A]  time = 0., size = 4, normalized size = 1.3 \begin{align*} -2\,x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-2,x)

[Out]

-2*x

________________________________________________________________________________________

Maxima [A]  time = 0.94299, size = 4, normalized size = 1.33 \begin{align*} -2 \, x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-2,x, algorithm="maxima")

[Out]

-2*x

________________________________________________________________________________________

Fricas [A]  time = 1.63651, size = 8, normalized size = 2.67 \begin{align*} -2 x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-2,x, algorithm="fricas")

[Out]

-2*x

________________________________________________________________________________________

Sympy [A]  time = 0.016675, size = 3, normalized size = 1. \begin{align*} - 2 x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-2,x)

[Out]

-2*x

________________________________________________________________________________________

Giac [A]  time = 1.08113, size = 4, normalized size = 1.33 \begin{align*} -2 \, x \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-2,x, algorithm="giac")

[Out]

-2*x